package com.xying.dao;

import com.xying.pojo.Usr;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsrMapper {
    int deleteByPrimaryKey(String idNo);

    int insert(Usr record);

    int insertSelective(Usr record);

    Usr selectByPrimaryKey(String idNo);

    int updateByPrimaryKeySelective(Usr record);

    int updateByPrimaryKey(Usr record);



    Usr selectUsrByUserNamePassword(@Param("userName") String userName, @Param("password") String password);

    Integer selectCountByIdNoPassword(@Param("idNo") String idNo, @Param("password") String password);

    Integer selectUsrByUserNameAndAdminRole(@Param("userName") String userName, @Param("code") int code);

    int selectCountByUserName(@Param("userName") String userName, @Param("idNo") String idNo);

    List listByUserName(String userName);

    List<Usr> listAllUsr();

    String selectUserNameByIdNo(@Param("idNo") String idNo);
}